shader07.c
#version 460
#pragma vp_name REX Engine - Init View Space
#pragma vp_function oe_rex_init_view, vertex_view, first
#define VP_STAGE_VERTEX
// outputs
vec3 vp_Normal;
#pragma vp_varying_out vec3 vp_Normal
vec3 oe_UpVectorView;
#pragma vp_varying_out vec3 oe_UpVectorView
void oe_rex_init_view(inout vec4 vert_view)
{
    //  up  vector at this vertex in view space, which we will later
    // need in order to elevate the terrain. vp_Normal can change later
    // but UpVectorView will stay the same.
    oe_UpVectorView = vp_Normal;
}
